			<div id="sidebar" class="col-1-3">
				<div class="wrap-col">
					<div class="box">
						<div class="heading"><h2>About us</h2></div>
						<div class="content">
							<img src="./Public/Home/images/zerotheme.jpg" style="border: 0px;"/>
							<p>Html5 chinaz创建的模板。您可以使用和修改模板对个人和商业用途。你必须保留所有版权信息和信用在模板和相关文件的链接。</p>
						</div>
					</div>
					<?php
						//分类模型
						$cateModel = new \Common\Model\Cate;
						//获得所有的分类数据
						$cateData = $cateModel->get();	
						//文章模型
						$arcModel = new \Common\Model\Arc;
						foreach ($cateData as $k => $v) {
							$cateData[$k]['count'] = $arcModel->where("category_cid={$v['cid']}")->count();
						}
						?>
					<div class="box">
						<div class="heading"><h2>分类</h2></div>
						<div class="content">
							<?php foreach ($cateData as $v){?>
									<?php if($v['count']){?>
                
							<ul>
								<li><a href="l_<?php echo $v['cid']?>.html"><?php echo $v['cname']?> (<?php echo $v['count']?>)</a></li>
							</ul>
								<?php }else{?>
									<ul>
										<li><a href="l_<?php echo $v['cid']?>.html"><?php echo $v['cname']?></a></li>
									</ul>
								
               <?php }?>
							<?php }?>
						</div>
					</div>
					<?php 
						//标签模型
						$tagModel = new \Common\Model\Tag;
						//获得所有的标签的数据
						$tagData = $tagModel->get();
					 ?>
					<div class="box">
						<div class="heading"><h2>标签云</h2></div>
						<div class="content">
							<?php foreach ($tagData as $v){?>
							<ul>
								<li><a href="T_<?php echo $v['tid']?>.html"><?php echo $v['tname']?></a></li>
							</ul>
							<?php }?>
						</div>
					</div>
					<div class="box">
						<div class="heading"><h2>热门主题</h2></div>
						<div class="content">
							<div class="post">
								<img src="./Public/Home/images/img4.jpg" width="50px"/>
								<h4><a href="http://lz.zbjuran.com/">励志</a></h4>
								<p>2016，5，17</p>
							</div>
							<div class="post">
								<img src="./Public/Home/images/img5.jpg" width="50px"/>
								<h4><a href="http://ent.sina.com.cn/">娱乐</a></h4>
								<p>2016，5，17</p>
							</div>
							<div class="post">
								<img src="./Public/Home/images/img1.jpg" width="50px"/>
								<h4><a href="http://www.gexing.com/pifu/t/%E6%84%8F%E5%A2%83">意境</a></h4>
								<p>2016，5，17</p>
							</div>
						</div>
					</div>
				</div>